#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@desc: .

@Project: kuberCloud
@File: urls.py
@Author: admin
@Date: 2023/8/23 14:55 
"""

from enum import Enum


class Urls(Enum):
    #
    getAccessToken = '/accessToken.do'
    removeAccessToken = '/removeAccessToken.do'
    refreshAccessToken = '/refreshAccessToken.do'
    # 区域
    getZone = '/zone/query.do'
    changeZone = '/changeZoneWithResp.do'
    getClusterByZone = '/zone/queryClusters.do'
    getMyZone = '/zone/myZone.do'
    createZone = '/zone/add.do'
    startZone = '/zone/start.do'
    stopZone = '/zone/stop.do'
    deleteZone = '/zone/delete.do'
    # 版本
    getVersion = '/getVersion.do'
    # 集群
    getCluster = '/cluster/query.do'
    getClusterById = '/cluster/queryById.do'
    createCluster = '/cluster/add.do'
    updateCluster = '/cluster/update.do'
    deleteCluster = '/cluster/delete.do'
    startCluster = '/cluster/start.do'
    stopCluster = '/cluster/stop.do'
    getMachineByCluster = '/cluster/queryMachines.do'
    getL2NetworkByCluster = '/cluster/queryL2Network.do'
    loadL2NetworkByCluster = '/cluster/loadL2Network.do'
    unloadL2NetworkByCluster = '/cluster/unloadL2Network.do'
    getStorageByCluster = '/cluster/queryStorage.do'
    loadStorageByCluster = '/cluster/addStorage.do'
    unloadStorageByCluster = '/cluster/removeStorage.do'
    # 物理机
    getMachine = '/physicalmachine/query.do'
    createMachine = '/physicalmachine/add.do'
    updateMachine = '/physicalmachine/update.do'
    startMachine = '/physicalmachine/start.do'
    stopMachine = '/physicalmachine/stop.do'
    removeMachine = '/physicalmachine/remove.do'
    reconnectMachine = '/physicalmachine/reconnect.do'
    powerOffMachine = '/physicalmachine/powerOff.do'
    powerOnMachine = '/physicalmachine/powerOn.do'
    rebootMachine = '/physicalmachine/reboot.do'
    maintainMachine = '/physicalmachine/maintain.do'
    getMachineNicInfo = '/physicalmachine/queryNIC.do'
    cutMachineNicSRIOV = '/physicalmachine/generate.do'
    revertMachineNicSRIOV = '/physicalmachine/unGenerate.do'
    getMachineByClusterId = '/physicalmachine/queryComputenode.do'
    getAvailableClusterByMachine = '/physicalmachine/queryCluster.do'
    syncMachineNIC = '/physicalmachine/syncNIC.do'
    getMachinePhysicalHardDrive = '/physicalmachine/queryPhysicalDisk.do'
    getMachineGPU = '/physicalmachine/queryHostGpu.do'
    getMachineLogicalHardDrive = '/physicalmachine/queryHostDisk.do'
    syncMachineLogicalHardDrive = '/physicalmachine/syncHostDisk.do'
    getMachineLogicalHardDriveMountableVM = '/physicalmachine/queryCloudHost.do'
    loadVMByMachineLogicalHardDrive = '/physicalmachine/vmPlugHostDisk.do'
    unloadVMByMachineLogicalHardDrive = '/physicalmachine/vmUnPlugHostDisk.do'
    configMachineCpuShare = '/physicalmachine/configCpuShared.do'
    getMachineHugePage = '/physicalmachine/getHugePageList.do'
    createMachineHugePage = '/physicalmachine/addHugePage.do'
    deleteMachineHugePage = '/physicalmachine/deleteHugePage.do'
    # 主存储
    getStorage = '/primarystorage/query.do'
    startStorage = '/primarystorage/start.do'
    stopStorage = '/primarystorage/stop.do'
    # 镜像服务器
    getMirrorServer = '/mirrorserver/query.do'
    createMirrorServer = '/mirrorserver/add.do'
    updateMirrorServer = '/mirrorserver/update.do'
    deleteMirrorServer = '/mirrorserver/delete.do'
    cleanMirrorServer = '/mirrorserver/clean.do'
    startMirrorServer = '/mirrorserver/enable.do'
    stopMirrorServer = '/mirrorserver/disable.do'
    reconnectMirrorServer = '/mirrorserver/reconnect.do'
    mirrorServerEnterMaintainMode = '/mirrorserver/enterMaintainMode.do'
    mirrorServerSyncMonNode = '/mirrorserver/syncMonNode.do'
    updateMirrorServerGlusterFsConf = '/mirrorserver/updateGlusterFsConf.do'
    updateMirrorServerCefsFsConf = '/mirrorserver/modifyCephFSConfig.do'
    getStopVMsForMirrorServer = '/mirrorserver/stopVm.do'
    # 标签
    getLabel = '/label/query.do'
    # 日志
    getLoginLog = '/loginLog/query.do'
    getOperationLog = '/operationLog/query.do'
    exportOperationLog = '/operate/export.do'
    getApiLog = '/apiLog/query.do'
    getExportLog = '/exportLog/query.do'
